#ifndef BUTTONGAME_H
#define BUTTONGAME_H

#include <QPushButton>

#include "games/basegame.h"

// ButtonGame: click on the button many times to unlock
class ButtonGame : public BaseGame
{
    Q_OBJECT
public:
    // Constructor
    explicit ButtonGame(QWidget *parent = 0, int difflvl = 1);

    // Members
    bool isSolved() { if(counter >= difficulty_level * 10) return true; else return false; }
    QString hint() { return "Click!"; }

public slots:
    // Slots
    void onButtonClicked();

private:
    QPushButton ***map;

    int n_rows;
    int n_cols;

    int counter;
    QPushButton * current_button;
};

#endif // BUTTONGAME_H
